home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / csim / source.lha / source / C++SIM / Element.h < prev    next >
C/C++ Source or Header  |  1993-06-14  |  594b  |  51 lines

  1. /*
  2.  * Copyright (C) 1993
  3.  *
  4.  * Department of Computing Science,
  5.  * The University,
  6.  * Newcastle upon Tyne,
  7.  * UK.
  8.  */
  9.  
  10.  
  11. /*
  12.  * This is used to simply test the operation of the Head and Link classes.
  13.  */
  14.  
  15.  
  16. #ifndef ELEMENT_H_
  17. #define ELEMENT_H_
  18.  
  19. #ifndef COMMON_H_
  20. #include "common.h"
  21. #endif
  22.  
  23. #ifndef LINK_H_
  24. #include "Link.h"
  25. #endif
  26.  
  27.  
  28. class Set;
  29.  
  30.  
  31. class Element : public Link
  32. {
  33. public:
  34.     Element ();
  35.     Element (long);
  36.     ~Element ();
  37.     
  38.     boolean Belongs (Set*) const;
  39.  
  40.     long GetValue () const;
  41.     void SetValue (long);
  42.     
  43. private:
  44.     long value;
  45. };
  46.  
  47.  
  48. #include "Element.n"
  49.  
  50. #endif
  51.